import React from 'react';
import { Progress, Button } from 'react-weui';

class WordTest extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      value: 0,
      timer: null,
      isUploading: false
    };
    this.anwser = this.anwser.bind(this);
  }
  componentDidMount() {
    // this.setState({
    //   value: 10,
    //   isUploading: true
    // })
  }
  anwser() {

  }
  render() {
    const state = this.state;
    const props = this.props;
    return (
      <div>
        <br />
        <br />
        <Progress value={state.value} showCancel={false} />
        <br />
        <br />
        <Button onClick={this.anwser}>选择1</Button>
        <Button onClick={this.anwser}>选择2</Button>
        <Button onClick={this.anwser}>选择3</Button>
        <Button onClick={this.anwser}>选择4</Button>

      </div>
    );
  }
}

export default WordTest;